const express = require('express')
const app = express()
const cors = require('cors')
app.use(cors())
const router = require('./apiRouter')
app.use('/api', router)

app.listen(8239, () => {
    console.log('express server running at localhost:8239');
})